﻿<sap:ActivityDesigner x:Class="WFExtended.Twitter.Activities.Designers.SendDirectMessageDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:m="clr-namespace:System;assembly=mscorlib"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    xmlns:wfet="clr-namespace:WFExtended.Twitter;assembly=WFExtended.Twitter"
>

    <sap:ActivityDesigner.Resources>
        <ResourceDictionary>
            <sapc:ArgumentToExpressionConverter x:Key="ArgumentToExpressionConverter" />
        </ResourceDictionary>
    </sap:ActivityDesigner.Resources>


    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <sapv:ExpressionTextBox 
          HintText="Username"
          Expression="{Binding Path=ModelItem.Username, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In }"
          OwnerActivity="{Binding Path=ModelItem}"
          ExpressionType="m:String"
          Width="110"
          Margin="0,5"
          Grid.Row="0"
          Grid.Column="0"
          MaxLines="1" />
        <sapv:ExpressionTextBox 
          HintText="Text"
          Expression="{Binding Path=ModelItem.Text, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In }"
          OwnerActivity="{Binding Path=ModelItem}"
          ExpressionType="m:String"
          Width="110"
          Margin="0,5"
          Grid.Row="1"
          Grid.Column="0"
          MaxLines="1" />
    </Grid>
</sap:ActivityDesigner>


